From dc7d5231e5febbf706e2f0b6dc56e67b870323b4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 31 Jan 2009 18:52:36 +0000 Subject: [PATCH] (rmail-redecode-body): Use eight-bit instead of obsolete eight-bit-control and eight-bit-graphic. --- lisp/mail/rmail.el | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 8ea6cd2dbba..b2bd29c1991 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -2722,14 +2722,13 @@ iso-8859, koi8-r, etc." (not (coding-system-equal (coding-system-base old-coding) (coding-system-base coding))) - ;; If the body includes only eight-bit-* - ;; characters, encoding might fail, e.g. with - ;; UTF-8, and isn't needed anyway. + ;; If the body includes only eight-bit characters, + ;; encoding might fail, e.g. with UTF-8, and isn't + ;; needed anyway. (> (length (delq 'ascii - (delq 'eight-bit-graphic - (delq 'eight-bit-control - (find-charset-region - (point-min) (point-max)))))) + (delq 'eight-bit + (find-charset-region + (point-min) (point-max))))) 0) (encode-coding-region (point-min) (point-max) old-coding)) (decode-coding-region (point-min) (point-max) coding) -- 2.30.2